/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.cloud.ai.service.impl;

import com.iwindplus.cloud.ai.service.BaseAiService;
import jakarta.annotation.Resource;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.stereotype.Service;

/**
 * AI业务层接口实现类.
 *
 * @author zengdegui
 * @since 2025/11/09 11:36
 */
@Service
public class BaseAiServiceImpl implements BaseAiService {

    @Resource
    private ChatModel chatModel;

    @Override
    public String chat(String content) {
        return chatModel.call(content);
    }
}
